{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">标题</label>
        <div class="layui-input-block">
            <input type="text" name="title" lay-verify="required" value="{$data.title}" autocomplete="off" placeholder="标题"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">简介</label>
        <div class="layui-input-block">
            <textarea name="desc"  value="{$data.desc}" placeholder="简介" class="layui-textarea">{$data.desc}</textarea>
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">链接</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="link" lay-verify="required" value="{$data.link}" autocomplete="off" placeholder="链接"-->
<!--                   class="layui-input">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">排序</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="sort" value="{$data.sort}" lay-verify="required|number" autocomplete="off" placeholder="排序"-->
<!--                   class="layui-input">-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}